﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
	<!--script type="text/javascript" src="/scripts/jquery-2.1.1.min.js"></script>
	<script type="text/javascript" src="/scripts/underscore-min.js"></script>
	<script type="text/javascript" src="/scripts/jmvc.js"></script-->
	<script type="text/javascript" src="/scripts/require.js"></script>
	<link type="text/css" rel="stylesheet" href="/css/app.css" />
</head>
<body>
	<!--div id="page">
		<div id="menu" style="height: 50px;"></div>
		<div id="menu-breadcrumb"></div>
		<div id="page-content" class="clear"></div>
	</div-->
</body>
<script type="text/javascript">
	requirejs.config({
		baseUrl: 'modules',
		paths: {
			'css': '/scripts/css',
			'template': '/scripts/template',
			'jquery': '/scripts/jquery-2.1.1.min',
			'underscore': '/scripts/underscore-min'
		}
	});
	require(['main/main']);

	/*
	$(function () {
		var menuModel = [
			{ text: 'Home', module: 'home' },
			{ text: 'Contacts', module: 'contacts' },
			{ text: 'Test', module: 'test' }
		];

		var modules = [
			{ name: 'menu', url: '/jmvc-modules/menu/menu.js', onload: function () { this.action('menu', 'index', menuModel); } },
			{ name: 'home', url: '/jmvc-modules/home/home.js' },
			{ name: 'contacts', url: '/jmvc-modules/contacts/contacts.js' },
			{ name: 'test', url: '/jmvc-modules/test/test.js' },
		]

		jmvc.modules.add(modules);

		//jmvc.template.setOptions({ templateFunction: function (template, model, view) {
		//	return _.template(template, model);
		//}});
	});

	*/
</script>
</html>
